<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>双向数据绑定</title>
    <script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
</head>
<body>
<div id="case2-userinput">
    <p>{{message}}</p>
    <input v-model="message">
</div>
<script type="text/javascript">
    var userinput=new Vue({
        el:"#case2-userinput",
        data:{
            message:"slsher"
        }
    })
</script>
</body>
</html>